{include file="header.tpl"}
<div class="page-title">アカウント管理</div>
<center>
    <div style="width: 100%;">
        <div>
            <table class="manage_table">
                <thead> 
                    <tr>
                        <th>番号</th>
                        <th>名称</th>
                        <th>住所</th>
                        <th>電話番号</th>
                        <th>Eメール</th>
                        <th>ユーザー</th>
                        <th>活動</th>
                    </tr>
                </thead>
                <tbody>
                    {foreach from=$users key=k item=user}
                    <tr>
                        <td>{$k+1}</td>
                        <td>{$user.user_lname} {$user.user_fname} </td>
                        <td>{$user.user_address|truncate:50}</td>
                        <td>{$user.user_phone}</td>
                        <td>{$user.user_email}</td>
                        <td>{$user.user_name}</td>
                        <td class="manage_table_options">
                            {if $viewer_type == 1}
                                <a href="edit_user.php?user_id={$user.id}">編集</a>  
                            {/if}
                            <!--<a href="user.php?id={$user.id}">詳細</a>-->
                        </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>
        </div>
        <center>
            ページ:
            {for $i=1 to $totalPage }
            {if $i eq $page_number}<span style="margin-left: 10px; color: red;">[{$i}]</span>{else}<a href="manage_user.php?search={$search}&page_number={$i}" style='margin-left: 10px;color: black;'>{$i}{/if}</a>
            {/for}
        </center>
    </div>
</center>
{include file="footer.tpl"}